package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.entity.dto.ScmStockHisDTO;
import com.xinsoft.entity.dto.ScmStockParam;
import com.xinsoft.entity.po.ScmStockHis;
import com.xinsoft.service.ScmStockHisService;
import com.xinsoft.mapper.ScmStockHisMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ZYM
* @description 针对表【scm_stock_his(库存记录表)】的数据库操作Service实现
* @createDate 2023-08-15 15:42:43
*/
@Service
public class ScmStockHisServiceImpl extends ServiceImpl<ScmStockHisMapper, ScmStockHis>
    implements ScmStockHisService{

    /**
     * 分页
     * @param param
     * @return
     */
    @Override
    public List<ScmStockHisDTO> findListByParam(ScmStockParam param) {
        //分页
        List<ScmStockHisDTO> result = this.baseMapper.findListByParam(param);
        //返回值
        return result;
    }

    /**
     * 合计行
     * @param param
     * @return
     */
    @Override
    public ScmStockHisDTO findTotalByParam(ScmStockParam param) {

        ScmStockHisDTO total = this.baseMapper.findTotalByParam(param);
        //返回值
        return total;
    }
}




